/**
 * 
 */
package theserver;

import java.io.Serializable;

/**
 * @author <a href="mailto:and-mell@dsv.su.se">Anders Mellerborg</a>
 */
public class VenueActivity implements Serializable {

    private final int locationID;
    private final String venue;
    private final String activity;
    private final int minParticipants;
    private final int maxParticipants;

    /**
     * <code>VenueActivity</code> contains all information needed regarding
     * venues and their activities.
     *
     * @param locationID the ID of the location
     * @param venue the name of the venue
     * @param activity the activities for the
     * @param minParticipants number of minimum participants
     * @param maxParticipants number of maximum participants
     */
    public VenueActivity(int locationID, String venue, String activity,
            int minParticipants, int maxParticipants) {
        this.locationID = locationID;
        this.venue = venue;
        this.activity = activity;
        this.minParticipants = minParticipants;
        this.maxParticipants = maxParticipants;
    }

    /**
     * @return the locationID
     */
    public int getLocationID() {
        return locationID;
    }

    /**
     * @return the venue
     */
    public String getVenue() {
        return venue;
    }

    /**
     * @return the activity
     */
    public String getActivity() {
        return activity;
    }

    /**
     * @return the minParticipants
     */
    public int getMinParticipants() {
        return minParticipants;
    }

    /**
     * @return the maxParticipants
     */
    public int getMaxParticipants() {
        return maxParticipants;
    }

    @Override
    public String toString() {
        String s = activity+": "+venue;
        return s;
    }
}
